package org.example.mapper;

import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.example.pojo.Job;
import org.example.pojo.Resume;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
@Mapper
public interface ResumeMapper {

    Integer getResumeIdByUserId(@Param("userId") Integer userId);

    void insertResume(Resume resume);

    Resume selectByUserId(Integer userId);

    Resume selectByResumeId(Integer resumeId);

    void updateResume(Resume resume);

    List<Resume> selectAllResume();

    List<Resume> findResumeByTags(String tags);

    List<Resume> selectByUserIdAndName(Integer userId, String name);

    void updateStatus(Integer userId, int status);


}
